🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ngx-color-picker

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-color-picker

Color picker widget for Angular

8.2.0
Source
npm
Version published
Weekly downloads
144K
-12.67%
Maintainers
1
Weekly downloads
 
Created

What is ngx-color-picker?

ngx-color-picker is an Angular component library that provides a color picker widget. It allows users to select colors through a user-friendly interface, supporting various color formats such as HEX, RGB, and HSL. The package is highly customizable and can be integrated easily into Angular applications.

What are ngx-color-picker's main functionalities?

Basic Color Picker

This feature allows you to add a basic color picker to your Angular application. The selected color is bound to the 'color' variable in your component.

<color-picker [(color)]="color"></color-picker>

Preset Colors

This feature allows you to provide a set of preset colors that users can choose from. The 'presetColors' variable should be an array of color strings.

<color-picker [(color)]="color" [presetColors]="presetColors"></color-picker>

Output Events

This feature allows you to handle color change events. The 'onColorChange' method will be called whenever the user selects a new color.

<color-picker [(color)]="color" (colorChange)="onColorChange($event)"></color-picker>

Custom Styles

This feature allows you to customize the dimensions of the color picker. The 'cpWidth' and 'cpHeight' properties set the width and height of the color picker, respectively.

<color-picker [(color)]="color" [cpWidth]="200" [cpHeight]="200"></color-picker>

Other packages similar to ngx-color-picker

FAQs

Package last updated on 18 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts